0,
GTK_PARAM_READABLE));
+ /**
+ * GtkNotebook:initial-gap:
+ *
+ * The "initial-gap" property defines the minimum size for the initial
+ * gap between the first tab.
+ *
+ * Since: 3.2
+ */
+ gtk_widget_class_install_style_property (widget_class,
+ g_param_spec_int ("initial-gap",
+ P_("Initial gap"),
+ P_("Initial gap before the first tab"),
+ 0,
+ G_MAXINT,
+ 0,
+ GTK_PARAM_READABLE));
+
/**
* GtkNotebook::switch-page:
* @notebook: the object which received the signal.
gint i;
guint border_width;
GtkBorder padding;
+ gint initial_gap;
widget = GTK_WIDGET (notebook);
children = priv->children;
"arrow-spacing", &arrow_spacing,
"scroll-arrow-hlength", &scroll_arrow_hlength,
"scroll-arrow-vlength", &scroll_arrow_vlength,
+ "initial-gap", &initial_gap,
NULL);
border_width = gtk_container_get_border_width (GTK_CONTAINER (notebook));
gtk_widget_get_allocation (widget, &allocation);
+ allocation.x += initial_gap;
+ allocation.width -= 2 * initial_gap;
+
switch (tab_pos)
{
case GTK_POS_TOP: